function del(){
	if(confirm("你确定要删除？")){
		return true;
	}
	return false;
}


function rewriteUrl(string){
	
	var arr = string.split("\/");
	var rewriteUrl = '';
	
	if(alias){
		for(var i=0;i<arr.length;i++){
			if(i == 0) {
				rewriteUrl  = 'http://'+arr[0] +'.'+ domain;
			}else {
				rewriteUrl  += '/'+arr[i];
			}
		} 
		
	} else {
		string = string.replace("www/","");
		rewriteUrl = url + string;
	}
	return rewriteUrl;
}

function cap(){
	rewritUrl = rewriteUrl("www/index/captcha");
	var timestamp = Date.parse(new Date());
	var img_url = rewritUrl+'?'+timestamp;
	$("#captcha_img").attr('src',img_url);
}